/**
 * 
 */
var phone;

window.onload = function(){
	phone = document.getElementById("phone");
}
function checkPhone(){
	var regex = /^1[3|4|5|7|8][0-9]{9}$/;
	var value = phone.value;
	if(!regex.test(value)){
		alert("手机格式有误");
	}
}